import service from '@/utils/request'

export const useSmClassApi = (id: number) => {
	return service.get('/sm/class/' + id)
}

export const useSmClassSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sm/class', dataForm)
	} else {
		return service.post('/sm/class', dataForm)
	}
}

export const getSketchClass = () => {
	return service.get('/sm/class/sketch')
}